package com.allenkerr.vo;

import com.allenkerr.util.SearchParamUtils;
import org.apache.commons.collections4.MapUtils;

import java.util.Map;

/**
 * Created by 小柯 on 17/9/6.
 */
public class CustomerSearchParams {

    private String firstName;
    private String lastName;

    public CustomerSearchParams(Map<String, String> map) {
        if (MapUtils.isEmpty(map)) {
            return;
        }
        this.firstName = SearchParamUtils.getStringParam(map, "first_name");
        this.lastName = SearchParamUtils.getStringParam(map, "last_name");
    }

    public String getFirstName() {
        return firstName;
    }

    public void setFirstName(String firstName) {
        this.firstName = firstName;
    }

    public String getLastName() {
        return lastName;
    }

    public void setLastName(String lastName) {
        this.lastName = lastName;
    }
}
